#include<stdio.h>
#include<unistd.h>
#include<pthread.h>


void *thread_run(void *args)
{
  const char *id=(const char *)args;
  while(1)
  {
    printf("线程%s,%d\n",id,getpid());
    sleep(1);
  }

}

int main()
{

  pthread_t tid;

  pthread_create(&tid,NULL,thread_run,(void *)"thead tao");

  while(1){
    printf("man线程 %d\n",getpid());
    sleep(1);
  }

}
